package com.endava.spring.beans;

/**
 * The model of an account.
 * 
 * @author acojocar
 * @since 26.07.2013
 * @version 1.0
 * 
 */
public class Account {

	private Integer accountID;
	private String accountType;
	private Integer amount;

	/**
	 * Implicit constructor.
	 */
	public Account() {
		super();
	}

	/**
	 * Constructor of account model.
	 * 
	 * @param accountID
	 *            the ID of account
	 * @param accountType
	 *            the type of account
	 * @param amount
	 *            the amount of account
	 */
	public Account(int accountID, String accountType, int amount) {
		super();
		this.accountID = accountID;
		this.accountType = accountType;
		this.amount = amount;
	}

	/**
	 * Gets the ID account.
	 * 
	 * @return the accountID
	 */
	public Integer getAccountID() {
		return accountID;
	}

	/**
	 * Sets the ID account.
	 * 
	 * @param accountID
	 *            the accountID to set
	 */
	public void setAccountID(Integer accountID) {
		this.accountID = accountID;
	}

	/**
	 * Gets the account type.
	 * 
	 * @return the accountType
	 */
	public String getAccountType() {
		return accountType;
	}

	/**
	 * Sets the account type.
	 * 
	 * @param accountType
	 *            the accountType to set
	 */
	public void setAccountType(String accountType) {
		this.accountType = accountType;
	}

	/**
	 * Gets the amount of account.
	 * 
	 * @return the amount
	 */
	public Integer getAmount() {
		return amount;
	}

	/**
	 * Sets the amount of account.
	 * 
	 * @param amount
	 *            the amount to set
	 */
	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return " > Account : ID => " + accountID + " | Type => " + accountType
				+ " | Amount => " + amount + "\n";
	}

}
